<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8"/>
    <title>官网轮播配置</title>
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="format-detection" content="telephone=no"/>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="../../css/user.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form" id="cmsRecommendAddForm">

    <input type="hidden" name="fromId" id="fromId"/>
    <div class="user_left">
        <div class="layui-form-item">
            <label class="layui-form-label">资讯选择</label>
            <div class="layui-input-block">
                <input type="text" name="fromTitle" th:value="${cmsRecommend.fromId}" class="layui-input" id="infoSel" lay-verify="required" readonly="true"/>
            </div>
        </div>

        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">栏目分类</label>
                <div class="layui-input-inline">
                    <select name="type" class="newsLook" lay-filter="browseLook" id="type">
                        <option value="-1">首页</option>
                        <option th:each="nav,iterStat:${navList}" th:value="${iterStat.index}" th:text="${nav}"></option>
                    </select>
                </div>
            </div>
        </div>

        <!--<input type="hidden" name="imgUrl" id="imgUrl" lay-verify="required" value=""/>-->
        <!--<div class="layui-form-item">-->
            <!--<label class="layui-form-label">视频</label>-->
            <!--<div class="layui-input-block">-->
                <!--<input type="file" id="cmsLevelImgUpload" name="file" class="layui-upload-file" lay-title="选择焦点图片"/>-->
                <!--<p style="color: #f50;">视频播放</p>-->
                <!--<img src="../../images/cms/level.png" height="300px" width="500px" class="layui-show" id="cmsRecommendImg"/>-->
                <!--<iframe id="cmsRecommendImg" style="height:330px;width:510px;" src="http://player.youku.com/embed/XMzcwODYzODU5Ng==" frameborder="0" allowfullscreen="allowfullscreen"></iframe>-->
            <!--</div>-->
        <!--</div>-->

        <input type="hidden" name="imgUrl" id="imgUrl" lay-verify="required" value=""/>
        <div class="layui-form-item">
            <label class="layui-form-label">图片选择</label>
            <div class="layui-input-block">
                <input type="file" id="cmsRecommendImgUpload" name="file" class="layui-upload-file" lay-title="选择轮播图片"/>
                <p style="color: #f50;">*以下为官网推荐展示图，请选择一张上传(1000 * 590)，大小在500K以内</p>
                <img src="../../images/cms/recommend.jpg" height="315px" width="480px" class="layui-show" id="cmsRecommendImg"/>
            </div>
        </div>
    </div>
    <!--<div class="layui-upload">
        <button type="button" class="layui-btn" id="test1">上传图片</button>
        <div class="layui-upload-list">
            <img class="layui-upload-img" id="demo1">
            <p id="demoText"></p>
        </div>
    </div>-->
    <div class="layui-form-item" style="margin-left: 5%;">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit="submitCmsRecommend" lay-filter="submitCmsRecommend">立即提交</button>
            <button class="layui-btn layui-btn-primary" id="resetBtn">重置</button>
        </div>
    </div>
    <input type="hidden" name="createId" value=""/>
</form>
<script type="text/javascript" src="../../js/plugins/FroalaEditor/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/cmsRecommend/cmsRecommendAdd.js?version=1.0.1"></script>
</body>
</html>